//
//  ByShapeBaseView.h
//  laserdevice_ios
//
//  Created by pro on 16/11/26.
//  Copyright © 2016年 com.itboye. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "ByShapeDrawHandle.h"

// 图形的基类视图，实现多点连线，拖曳
@interface ByShapeBaseView : UIView

@property (nonatomic, strong) UIImage *baseImg;

- (NSMutableDictionary *)saveDictionary;
- (NSArray *)shapeImages;

@property (nonatomic, strong) NSMutableArray *models;

- (instancetype)initWithFrame:(CGRect)frame jsonDic:(NSDictionary *)dic;

// 添加一个图形，根据其mode属性
- (void)addShapeWithMode:(ByShapeMode)mode;

// 删除一个图形
- (void)deleteShape;


// 撤销上一个操作
- (void)revoke;

// 重新绘制
- (void)reset;


// 绘制
- (void)updatePaths;


// 去选照片，需要告诉SceneVC不需要测量一次
@property (nonatomic, copy) void (^ selectPictureBlock)();


@end

